<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
		<title><%= h(yield(:title) || "myOffice - Office Management Software") %></title>
		<%= stylesheet_link_tag "blueprint/screen", :media => "screen, projection" %>
		<%= stylesheet_link_tag "blueprint/print", :media => "print" %>
		<!--[if lt IE 8]><%= stylesheet_link_tag "blueprint/ie", :media => "screen, projection" %><![endif]-->
		<%= stylesheet_link_tag "styles", :media => "screen, projection" %>
		<%= yield(:head) %>
	</head>
  <body>
<div class="container">
	<div class="span-24 last" id="header">
		<div class="span-8" id="logo"><%= link_to image_tag("logo_myoffice.png"), :controller => "myoffice", :action=> "index" %></div>
		<div class="span-16 last" id="toplinks">Welcome, <strong><%=session[:employee_name]%></strong> | <%if session[:employee_level] == 1%><%= link_to "Admin Area", {:controller => "admin", :action => "index"}, :class => "admin" %> |<%end%> <%=link_to 'Edit  Account',{:controller => 'myoffice',:action => 'edit_my_profile'},:class => 'useredit'%> <%if !@check_clock_out_attendance.nil?%>| <%=link_to 'Clock Out!', {:controller => 'myoffice',:action => 'clock_out'}, :class => "clockout" %> <%end%>| <%if session[:employee].nil?%><%=link_to 'Sign In', :controller => "myoffice", :action => 'login' %><%else%><%= link_to 'Sign Out', {:controller => 'myoffice',:action => 'logout'}, :class => "signout" %><%end%></div>
	
	</div>
<div class="span-24 last"> 
 <ul id="menubar"> 
	<li><%if params[:action] == 'index'%><%=link_to 'Home',{:controller => 'myoffice',:action => 'index'},:class => 'current'%>
	<%else%><%=link_to 'Home',{:controller => 'myoffice',:action => 'index'}%><%end%></li> 
	<li><%=link_to 'Attendance Information', :controller => "myoffice", :action => 'attendance_information'%></li> 
	<li><%=link_to 'Out-of-office Info',:controller => 'myoffice',:action => 'out_of_office_information'%></li> 
	<li><%= link_to "Visitors Info", :controller => "visitors", :action => "show_only" %></li> 
	<li><%= link_to "Meeting Room Info", :controller => "meetings", :action => "show_table" %></li> 
	<li><%=link_to 'Notice Board',:controller => 'myoffice',:action => 'notice_board_list'%></li> 
	<li><%=link_to 'Calendar',:controller => 'myoffice',:action => 'calendar'%></a></li> 
	<li><%=link_to 'Directory',:controller => 'myoffice',:action => 'directory'%></a></li> 
	<li><%=link_to 'Address Book',:controller => 'myoffice',:action => 'address_book'%></li>
	<li><%=link_to 'Write Board',:action => 'write_board'%></li>
	<li><%=link_to 'Mail',:action => 'mail'%></li>
</ul>
</div>
<div class="span-24 last" id="main">
<% flash.each do |name, msg| %><%= content_tag :div, msg, :class => name %><% end %>
<%if session[:employee_level] == 1%>
<div class="admin_links">
			<%= link_to "Admin", :controller => "admin", :action => "index" %> | <%= link_to "Meetings", :controller => "meetings", :action=> "index" %> | <%= link_to "Meeting Rooms", :controller => "meeting_rooms", :action=> "index" %>  | <%= link_to "Visitors", :controller => "visitors", :action => "index" %> | <%= link_to "Attendances", :controller => "attendances", :action => "index" %> | <%= link_to "Attendance Working Hours", :controller => "attendance_working_hours", :action => "index" %> | <%= link_to "Departments", :controller => "departments", :action => "index" %> | <%= link_to "Genders", :controller => "genders", :action => "index" %> | <%= link_to "Leave Details", :controller => "leave_details", :action => "index" %> | <%= link_to "Leave Offices", :controller => "leave_offices", :action => "index" %> | <%= link_to "Leave Portions", :controller => "leave_portions", :action => "index" %> | <%= link_to "Leave Statuses", :controller => "leave_statuses", :action => "index" %> | <%= link_to "Leave Types", :controller => "leave_types", :action => "index" %> | <%= link_to "Levels", :controller => "levels", :action => "index" %> | <%= link_to "Positions", :controller => "positions", :action => "index" %> | <%= link_to "Employees", :controller => "employees", :action => "index" %> | <%=link_to 'Address Book',:controller => 'address_books',:action => 'index'%> | <%=link_to 'Write Board', :controller => 'write_boards',:action => 'index'%> </div><%end%>
		<% if show_title? %><h1><%=h yield(:title) %></h1><% end %>
<%=yield%>
</div>
	
<div class="span-24 last" id="footer">
&copy; 2010, Localhost Sdn Bhd. All rights reserved.</div>
</div>
</body>
</html>

